<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp" %>
<html>
<head>
    <title>事农集单列表</title>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <meta name="decorator" content="ani"/>
    <%@ include file="/webpage/include/bootstraptable.jsp" %>
<%--    <%@include file="/webpage/include/treeview.jsp" %>--%>
    <link href="${ctxStatic}/plugin/bootstrapDatetimepicker/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
    <link href="${ctxStatic}/plugin/bootstrapDatetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" media="screen">

</head>
<body>
<div class="container">
    <form action="" class="form-horizontal"  role="form">
        <fieldset>
            <legend>选择集单时间</legend>
            <div class="form-group">
<%--                <label for="dtp_input3" class="col-md-2 control-label">Time Picking</label>--%>
                <div class="input-group date form_time col-md-5" data-date="" data-date-format="hh:ii" data-link-field="dtp_input3" data-link-format="hh:ii">
                    <input class="form-control" size="16" type="text" value="" readonly>
                    <span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
                    <span class="input-group-addon"><span class="glyphicon glyphicon-time"></span></span>
                </div>
                <input type="hidden" id="dtp_input3"  /><br/>
            </div>
<%--            <div class="form-group">--%>
<%--                <hr>--%>
<%--                <p>--%>
<%--                    限制集单导入时间--%>

<%--                </p>--%>
<%--            </div>--%>
        </fieldset>
    </form>
</div>
<script type="text/javascript" src="${ctxStatic}/plugin/bootstrapDatetimepicker/jquery/jquery-1.8.3.min.js" charset="UTF-8"></script>
<script type="text/javascript" src="${ctxStatic}/plugin/bootstrapDatetimepicker/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${ctxStatic}/plugin/bootstrapDatetimepicker/js/bootstrap-datetimepicker.js" charset="UTF-8"></script>
<script type="text/javascript" src="${ctxStatic}/plugin/bootstrapDatetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
<script type="text/javascript">
    $('.form_time').datetimepicker({
        language:  'zh',
        weekStart: 1,
        todayBtn:  1,
        autoclose: 1,
        todayHighlight: 1,
        startView: 1,
        minView: 0,
        maxView: 1,
        forceParse: 0
    });
    function callbackresult() {
        return $('#dtp_input3').val();
    }
    String.format = function() {
        if(arguments.length == 0)
            return null;
        var str = arguments[0];
        for(var i = 1; i < arguments.length; i++) {
            var re = new RegExp('\\{' + (i - 1) + '\\}', 'gm');
            str = str.replace(re, arguments[i]);
        }
        return str;
    };
    var myDate = new Date();
    var year = myDate.getFullYear(); //获取当前年
    var mon = myDate.getMonth() + 1; //获取当前月
    var date = myDate.getDate(); //获取当前日
    jp
    var time="${fns:getDictValue("OrderImpTime","OrderTime" ,"14:00")}";
    $(".form_time").datetimepicker("setDate", new Date(String.format("{0}-{1}-{2} {3}", year, mon, date,time)));

</script>
</body>
</html>
